package com.zoe.consumer.controller;

import com.api.server.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: dubbo1
 * @description:
 * @author: Dawson.Zhang
 * @create: 2020-09-14
 **/
@RestController
public class UserController {
    @Reference(version = "1.0.0")
    private UserService userService;
    @RequestMapping("/ins")
    public String ins(){
        String ins = userService.ins();
        return userService.ins();
    }

    @RequestMapping("/del")
    public String del(){
        userService.del();
        return userService.del();
    }

    @RequestMapping("/upd")
    public String upd(){
        userService.upd();
        return userService.upd();
    }

    @RequestMapping("/sel")
    public String sel(){
        userService.sel();
        return userService.upd();
    }

}
